﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildShopUpdate extends IMessageBase
    {
        public var reset:Boolean;
        public var shopItems:Array;
        public const _type:int = 16114;
        public static var _regist:SGuildShopUpdate = new SGuildShopUpdate(true);

        public function SGuildShopUpdate(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildShopUpdate();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.reset);
            SeqSGuildShopItemHelper.write(param1, this.shopItems);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.reset = param1.readBool();
            this.shopItems = SeqSGuildShopItemHelper.read(param1);
            return;
        }// end function

    }
}
